package com.fangshuoit.exception;

import com.fangshuoit.enums.ResultEnum;

/**
 * Created by 范承波 on 2017/10/2.
 * email：1197691639@qq.com
 * phone：18169015880
 */
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }

    public SellException(Integer code, String message) {
        super(message);
        this.code = code;
    }

}
